<template>
  <ul>
      <li>编号:{{id}}</li>
      <li>标题:{{title}}</li>
  </ul>
</template>

<script>
export default {
    name:'DetailComponent',
    // props:['a','b'],
    props:['title','id'],
    mounted() {
        console.log(this.$route.query.id);
    },
}
</script>

<style>

</style>